package org.cdivtc.exam.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 题目详细信息表
 * </p>
 *
 * @author xiaogoudashuai
 * @since 2025-03-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Questions implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 题目唯一标识
     */
    @TableId(value = "question_id", type = IdType.AUTO)
    private Integer questionId;

    /**
     * 题干内容
     */
    private String content;

    /**
     * 题目选项（JSON格式，如：{"A":"选项1","B":"选项2"}）
     */
    private String options;

    /**
     * 题目分值
     */
    private BigDecimal score;

    /**
     * 正确答案标识（如"A"或"A,B"）
     */
    private String correctAnswer;

    /**
     * 所属题库ID
     */
    private Integer bankId;


}
